import request from '@/router/axios';
// 获取列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/hg-equipment/repair/task/overhaul/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const submit = (data, type) => {
  return request({
    url: `/api/hg-quality/costadjustpro/${type}`,
    method: "post",
    data: data
  });
};

export const remove = ids => {
  return request({
    url: `/api/hg-quality/costadjustpro/remove`,
    method: "post",
    params: {
      ids
    }
  });
};

// 启动流程
export const startProcess = id => {
  return request({
    url: "/api/hg-quality/procreate/start-process",
    method: "post",
    params: {
      id
    }
  });
};

export const detail = (id) => {
  return request({
    url: '/api/hg-logistics/purchase/purchase-reconciliation/detail',
    method: 'get',
    params: {
      id,
    }
  })
}

